package com.msw.jcwapi.wb.sysZhanqu.controller;


import com.msw.jcwapi.common.result.Result;
import com.msw.jcwapi.wb.sysZhanqu.service.ISysZhanquService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2025-03-27
 */
@RestController
@RequestMapping("/sysZhanqu")
public class SysZhanquController {

    @Autowired
    ISysZhanquService sysZhanquService;

    //    查询id对应工程的全部站区
    @GetMapping("/list/{id}")
    public Result list(@PathVariable Integer id) {
        return Result.ok(sysZhanquService.listByProId(id));
    }

}
